home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / LIFER__ / PROTO / U / FILEMENU.C < prev    next >
Text File  |  1991-07-23  |  2KB  |  132 lines

  1. /*  FileMenu                                                                  Handle this menu list */
  2.  
  3. /* Unit name:  FileMenu.c   */
  4. /* Function:  Handle this specific menu list. */
  5. /* History: 7/23/91 Original by Prototyper 3.0   */
  6.  
  7.  
  8.  
  9. #include "PCommonLife.h"    /* Common */
  10. #include "Common_Life.h"    /* Common */
  11. #include "PUtils_Life.h"    /* General Utilities */
  12. #include "Utils_Life.h"    /* General Utilities */
  13.  
  14. #include "FileMenu.h"    /* This file */
  15.  
  16.  
  17. /* ======================================================= */
  18.  
  19.  
  20. /* Routine: Do_FileMenu */
  21. /* Purpose: Handle any menu items in this list specially. */
  22. /*         Get the main handler to ignore this menu item by changing */
  23. /*         SkipProcessing   to be TRUE. */
  24. /*         This routine is called before the main handler does anything */
  25. /*         when Doing_Pre is TRUE, it is called after the main handler */
  26. /*         again with Doing_Pre equal to FALSE. */
  27.  
  28. void Do_FileMenu( Doing_Pre, theItem, SkipProcessing)              /* Handle this menu selection */
  29. Boolean    Doing_Pre;
  30. short    theItem;
  31. Boolean    *SkipProcessing;
  32. {
  33.  
  34.  
  35.         *SkipProcessing = FALSE;                                           /* Set to not skip the processing of this menu item */
  36.  
  37.         switch (theItem)                                                      /* Handle all commands in this menu list */
  38.         {
  39.  
  40.                 case MItem_New:
  41.                             if (Doing_Pre == TRUE)
  42.                                 {
  43.                                 }
  44.                             else
  45.                                 {
  46.                                 }
  47.                             break;
  48.  
  49.                 case MItem_Open:
  50.                             if (Doing_Pre == TRUE)
  51.                                 {
  52.                                 }
  53.                             else
  54.                                 {
  55.                                 }
  56.                             break;
  57.  
  58.                 case MItem_Close:
  59.                             if (Doing_Pre == TRUE)
  60.                                 {
  61.                                 }
  62.                             else
  63.                                 {
  64.                                 }
  65.                             break;
  66.  
  67.                 case MItem_Save:
  68.                             if (Doing_Pre == TRUE)
  69.                                 {
  70.                                 }
  71.                             else
  72.                                 {
  73.                                 }
  74.                             break;
  75.  
  76.                 case MItem_Save_As:
  77.                             if (Doing_Pre == TRUE)
  78.                                 {
  79.                                 }
  80.                             else
  81.                                 {
  82.                                 }
  83.                             break;
  84.  
  85.                 case MItem_Revert_to_Saved:
  86.                             if (Doing_Pre == TRUE)
  87.                                 {
  88.                                 }
  89.                             else
  90.                                 {
  91.                                 }
  92.                             break;
  93.  
  94.                 case MItem_Page_Setup:
  95.                             if (Doing_Pre == TRUE)
  96.                                 {
  97.                                 }
  98.                             else
  99.                                 {
  100.                                 }
  101.                             break;
  102.  
  103.                 case MItem_Print:
  104.                             if (Doing_Pre == TRUE)
  105.                                 {
  106.                                 }
  107.                             else
  108.                                 {
  109.                                 }
  110.                             break;
  111.  
  112.                 case MItem_Quit:
  113.                             if (Doing_Pre == TRUE)
  114.                                 {
  115.                                 }
  116.                             else
  117.                                 {
  118.                                 }
  119.                             break;
  120.  
  121.                 default:
  122.                             break;
  123.  
  124.         }                                                                         /* End of item case */
  125.  
  126. }                                                                                /* End of procedure */
  127.  
  128.  
  129. /* ======================================================= */
  130.  
  131.  
  132.